//数据类型

//布尔类型
let bool:boolean=false;
bool=!bool;



//字符串
let str:string="lin";

//数字
let num:number=9;

//模板字符串
let content:string=`my first name is ${str}.i like number is ${num}`;

//数组
let list:number[]=[1,2,3,4,5];
//数组泛型
let list0:Array<number>=[1,5,6,8];

//元组
let x:[number,string];
x=[8,'ok'];
// x=['hello',9];  数据类型匹配失败报错
